<!DOCTYPE html>
<html>
<head>
<title>工伤费用报销</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.company" @keyup.enter="query" placeholder="公司">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.dept" @keyup.enter="query" placeholder="部门">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.post" @keyup.enter="query" placeholder="岗位">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.name" @keyup.enter="query" placeholder="员工姓名">
			</div>
			<a class="btn btn-default" @click="query">查询</a>
			#if($shiro.hasPermission("injuryexpensereimbursement:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("injuryexpensereimbursement:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("injuryexpensereimbursement:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
			#if($shiro.hasPermission("injuryexpensereimbursement:update"))
			<a class="btn btn-primary" @click="updateHk"><i class="fa fa-pencil-square-o"></i>&nbsp;修改回款</a>
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList&&!showtable" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">员工姓名</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="injuryExpenseReimbursement.name" readonly="readonly"  @click="popPage"   placeholder="请选择"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">身份证号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="injuryExpenseReimbursement.idno" readonly="readonly"  placeholder="身份证号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">公司名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="injuryExpenseReimbursement.company" readonly="readonly"  placeholder="公司名称"/>
			    </div>
			</div>
					<!--				<div class="form-group">
			   	<div class="col-sm-2 control-label">公司id</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="injuryExpenseReimbursement.companyId" readonly="readonly"  placeholder="公司id"/>
			    </div>
			</div>-->
									<div class="form-group">
			   	<div class="col-sm-2 control-label">部门</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="injuryExpenseReimbursement.dept" readonly="readonly"  placeholder="部门"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">岗位名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="injuryExpenseReimbursement.post" readonly="readonly"  placeholder="岗位名称"/>
			    </div>
			</div>
							<!--		<div class="form-group">
			   	<div class="col-sm-2 control-label">岗位id</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="injuryExpenseReimbursement.postId" placeholder="岗位id"/>
			    </div>
			</div>-->
									<div class="form-group">
			   	<div class="col-sm-2 control-label">发票类型</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="injuryExpenseReimbursement.invoiceType" placeholder="发票类型"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">发票金额</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="injuryExpenseReimbursement.invoiceMoney" placeholder="发票金额"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">发票数量</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="injuryExpenseReimbursement.invoiceQuantity" placeholder="发票数量"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">报销提交日期</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="injuryExpenseReimbursement.reimbursementSubmitDate" placeholder="报销提交日期"/>
			    </div>
			</div>

									<div class="form-group">
			   	<div class="col-sm-2 control-label">事故发生时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="injuryExpenseReimbursement.sgfssj" placeholder="事故发生时间"/>
			    </div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>

	<div v-show="showtable" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">

			<div class="form-group">
				<div class="col-sm-2 control-label">报销金额</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="injuryExpenseReimbursement.reimbursementMoney" placeholder="报销金额"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">伙食补助</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="injuryExpenseReimbursement.hsbz" placeholder="伙食补助"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">工亡待遇</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="injuryExpenseReimbursement.gwdy" placeholder="工亡待遇"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">回款日期</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="injuryExpenseReimbursement.hkrq" placeholder="回款日期"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">回款批次</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="injuryExpenseReimbursement.hkpc" placeholder="回款批次"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<!-- 弹出框 -->
<div id="popLayer" style="display: none;padding:10px;">
	<table id="popGrid"></table>
	<div id="popGridPager"></div>
	<!--<ul id="menuTree" class="ztree"></ul>-->
</div>


<script src="${rc.contextPath}/js/hr/injuryexpensereimbursement.js?_${date.systemTime}"></script>
</body>
</html>